Mattermost Application - Renew SSL Certificate of the Mattermost
|
1 min read
SSL certification
Part 1 - Deploy Mattermost
The certificate has issued for 3 months only, so in the case your certificate expires, refer to bellow steps.
Renew SSL certificate
- shutdown the docker-compose
cd docker/
sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml down
- renew the certificate using
scripts/issue-certificate.sh
sudo bash scripts/issue-certificate.sh -d <your domain> -o ${PWD}/certs
- Chose the Renew option (Number 2) and then approve it
- it will inform you that the new certificate is at
/etc/letsencrypt/live/{your domain}-0001/fullchain.pem
and/etc/letsencrypt/live/{your domain}-0001/privkey.pem
- Make sure the
CERT_PATH
and theKEY_PATH
point to the correct path
nano .env
- Now you can run your application using
sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml up -d
- make sure your domain is accessable
curl https://<YOUR_MM_DOMAIN>